﻿using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NuMvvm.Messaging
{
    public sealed class PropertyChangedMessage
    {
        public PropertyChangedMessage(object obj, string propertyName, object oldValue, object newValue)
        {
            Object = obj;
            PropertyName = propertyName;
            OldValue = oldValue;
            NewValue = newValue;
        }

        public object Object { get; private set; }

        public string PropertyName { get; private set; }

        public object OldValue { get; private set; }

        public object NewValue { get; private set; }
    }
}
